Skip to content

Refactor DynamoDBEncryptorTests to use hamcrest #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 8, 2018
Merged

Refactor DynamoDBEncryptorTests to use hamcrest #66

merged 2 commits into from
Dec 8, 2018

Conversation

johnwalker
Copy link
Contributor

This replaces calls to assertNotEquals to use hamcrest matchers. Hamcrest matchers are better because they separate assertion from the predicate being asserted.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Hamcrest matchers are a more generic alternative to assertNotEquals. They are a
little easier to maintain, since hamcrest just provides matchers.
Add a dependency on hamcrest-all to make unit testing easier.
@johnwalker johnwalker merged commit ed0112a into aws:master Dec 8, 2018
seebees pushed a commit that referenced this pull request Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants